package com.shycloud.mido.organ.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalTime;

/**
 * 排课表
 * @author Whfeng
 * @since 2019-09-26
 */
@Data
@TableName("org_schedule")
@EqualsAndHashCode(callSuper = true)
public class ScheduleEntity extends Model<ScheduleEntity> {
    private static final long serialVersionUID = 1L;

    // id
    @TableId(value = "id", type = IdType.UUID)
    private String id;

    // 订单id
    //private Integer orderId;

    // 机构id
    private Integer orgId;

    // 课程类型id
    private Integer lessonTypeId;

    // 课程名称
    private String lessonName;

    // 类型(1:1对1单驱;2:1对1双驱;3:1对多双驱;3:1对1个别课)
    private String type;

    // 教师关联ID
    private String teacherId;

    // 课节
    private Integer duration;

    // 上课时长（分钟）
    private Integer minutes;

    // 上课时间（日期）
    private LocalDate startDate;

    // 上课开始时间
    private LocalTime startTime;

    // 上课结束时间
    private LocalTime endTime;

    // 备注
    private String remark;

    // 考勤\r\n(正式:0:未考勤;1:准时;2:迟到;3:旷课;4:停课;5:请假
    private String status;

	// 提成金额
	private BigDecimal royaltyPrice;
}
